#!/bin/sh

function install_dev_tool
{
	#input
	soft=(subversion vsftpd sshd )

	echo "installing some software . . ."
	sleep 1

	count=${#soft[@]}

	for (( i=0;i<$count;i++)); do
            yum -y install ${soft[${i}]}
        done
	
	echo "finished installing some software . . . "
	sleep 1
}


function dev_tool
{
	dev_tool="subversion vsftpd sshd "
}

function turn_off
{
	list="cups bluetooth httpd ip6tables iptables pcscd sendmail \
         smartd svnserve yum-updatesd"

	for item in `echo $list` 
	do
		chkconfig $item off
	done
	
}
function turn_on
{
	list="vsftpd sshd"
	for item in `echo $list`
	do 
		chkconfig $item off
	done
}
#install_dev_tool
turn_off
turn_on
